# Contributor: Paul Bredbury <brebs@sent.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=evolution-on
pkgver=3.24.4
pkgrel=0
pkgdesc="Tray plugin for Evolution email client"
url="https://gitlab.com/ozanty/evolution-on"
arch="all"
license="GPL-2.0-or-later"
depends="evolution"
makedepends="evolution-dev glib-dev meson"
source="https://gitlab.com/ozanty/evolution-on/-/archive/$pkgver/evolution-on-$pkgver.tar.gz
	meson.patch
	widget.patch"

build() {
	abuild-meson \
		output .
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
a25ed53965d8aab2b6e40cfa590efa1726386ea8a41bfed6870f696be60957437742af96153f93acb228fea7bd10e434593f0b6d95ee491c2700b8c85c87e92a  evolution-on-3.24.4.tar.gz
7b7cf85cf5f6f7f1c46ee7464635befe3cfd26465367205cca18467e6cba5c6ad1ae9f3d5841f2478ccec2dea0d8bef1548c99826f869f3514a29deb2376a93f  meson.patch
025b2b9e910bb85157a000c7e87ad9123b68d46c1cb9b69d65fd07330862b809e4e23282cec10c480bb7c033e80197278b0ffc7e57e9fa4052238d48e8aecfb9  widget.patch
"
